import base
from imgaug import augmenters as iaa
import random
import os
import config



for p_dir,dirs,files in os.walk(config.image_dir):
    if p_dir == config.image_dir:
        for name in files:
            id = os.path.splitext(name)[0]
            new_id = id

            aug = iaa.Scale({"width": random.randint(600,1024), "height": "keep-aspect-ratio"})

            # base.augmenttation_handle(id,aug,new_id,False)
